package com.cg.service.impl;

import com.cg.entity.Divide;
import com.cg.dao.DivideMapper;
import com.cg.service.DivideService;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * (Divide)表服务实现类
 *
 * @author chengong
 * @since 2024-01-07 12:36:45
 */
@Service("divideService")
public class DivideServiceImpl implements DivideService {
    @Resource
    private DivideMapper divideMapper;


    /**
     * 根据科室id查询对应的科别信息
     */
    @Override
    public List<Divide> queryDivideByDepartmentId(Integer departmentId) {
        return divideMapper.queryDivideByDepartmentId(departmentId);
    }
}
